#include<stdio.h>
int main()
{
    int x,y,z,count=0;
    printf("MEN   WOMFN   CHILDREN\n");
    printf("......................\n");
    for(x=0;x<=10;x++){
        y=20-x*2;
        z=30-x-y;
        if(3*x+2*y+z==50)
        printf(" %2d:   %d   %d   %d\n",++count,x,y,z);
    }
}